package com.oa.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.oa.base.BaseDaoImpl;
import com.oa.dao.UserMarkDao;
import com.oa.entity.Mark;

@Repository("userMarkDao")
public class UserMarkDaoImpl extends BaseDaoImpl<Mark> implements UserMarkDao {
	
	//根据Id查询所有便签
	@SuppressWarnings("unchecked")
	public List<Mark> getMarkByIds(String id) {
		return getSession().createQuery("from Mark m where m.user=:userID")
				.setString("userID", id).list();
	}
}
